/*
 *  $Id: RiverRitual.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Spells {
    public class RiverRitual: SpellCard {
        public RiverRitual(): base("001_w_s_river_ritual") {
            Level = CompleteLevel.Final;
            Element = ElementType.Water;
            Value = 100;
            AddManaCost(ElementType.Water, 2);
        }

        public override void DoAction(TargetArgs args) {
            int water = 0;
            foreach (Land land in args.Player.Lands)
                if (land.Card.Element == ElementType.Water)
                    water++;
            args.Player.HealBy(NewDamage(args, DamageType.Health, water));
        }
    }
}
